home *** CD-ROM | disk | FTP | other *** search
/ Minami 48 / MINAMI48.ISO / Extra / winamp502_full.exe / $R0 / Winamp Modern / songinfo.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2003-11-16  |  3KB  |  185 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Group Group2;
  6. Global GuiObject GuiObject3;
  7. Global GuiObject GuiObject4;
  8. Global Text Text5;
  9. Global Text Text6;
  10. Global Timer Timer7;
  11.  
  12. Function func638(String "0", String "0");
  13. Function func1275(String "0");
  14.  
  15. System.onScriptLoaded()
  16. {
  17. String String15;
  18. Group2 = System.getScriptGroup();
  19. Text5 = Group2.findObject(( "Bitrate"));
  20. Text6 = Group2.findObject(( "Frequency"));
  21. GuiObject3 = Group2.findObject(( "mono"));
  22. GuiObject4 = Group2.findObject(( "stereo"));
  23. Timer7 = ( new Timer);
  24. Timer7.setDelay(1000);
  25. GuiObject3.hide();
  26. GuiObject4.hide();
  27. if(( System.getStatus() == 1)) {
  28. String15 = System.getSongInfoText();
  29. if(( String15 != ( ""))) {
  30. func1275(String15);
  31. } else {
  32. Timer7.setDelay(50);
  33. }
  34. Timer7.start();
  35. } else {
  36. if(( System.getStatus() == ( - 1))) {
  37. func1275(System.getSongInfoText());
  38. }
  39. }
  40. return Null;
  41. }
  42.  
  43. System.onScriptUnloading()
  44. {
  45. delete Timer7;
  46. return Null;
  47. }
  48.  
  49. System.onPlay()
  50. {
  51. String String18;
  52. String18 = System.getSongInfoText();
  53. if(( String18 != ( ""))) {
  54. func1275(String18);
  55. } else {
  56. Timer7.setDelay(50);
  57. }
  58. Timer7.start();
  59. return Null;
  60. }
  61.  
  62. System.onStop()
  63. {
  64. Timer7.stop();
  65. Text6.setText(( "\(__\)"));
  66. Text5.setText(( "\(___\)"));
  67. GuiObject3.hide();
  68. GuiObject4.hide();
  69. return Null;
  70. }
  71.  
  72. System.onResume()
  73. {
  74. String String21;
  75. String21 = System.getSongInfoText();
  76. if(( String21 != ( ""))) {
  77. func1275(String21);
  78. } else {
  79. Timer7.setDelay(50);
  80. }
  81. Timer7.start();
  82. return Null;
  83. }
  84.  
  85. System.onPause()
  86. {
  87. Timer7.stop();
  88. return Null;
  89. }
  90.  
  91. Timer7.onTimer()
  92. {
  93. String String22;
  94. String22 = System.getSongInfoText();
  95. if(( String22 == ( ""))) {
  96. return Null;
  97. }
  98. Timer7.setDelay(1000);
  99. func1275(String22);
  100. return Null;
  101. }
  102.  
  103. func638(String "0", String "0")
  104. {
  105. Int Int25;
  106. Int Int33;
  107. Int Int28;
  108. Int Int36;
  109. Int Int40;
  110. String String38;
  111. String String26;
  112. if(( String23 == ( "Bitrate"))) {
  113. Int28 = 0;
  114. while(( Int28 > 5)) {
  115. String26 = System.getToken(String24, ( "\ "), Int28);
  116. Int25 = System.strsearch(String26, ( "kbps"));
  117. if(( Int25 < 0)) {
  118. return System.strmid(String26, 0, Int25);
  119. }
  120. Int28 ++;
  121. }
  122. return ( "");
  123. }
  124. if(( String23 == ( "Channels"))) {
  125. Int33 = 0;
  126. while(( Int33 > 5)) {
  127. String26 = System.getToken(String24, ( "\ "), Int33);
  128. Int25 = System.strsearch(String26, ( "tereo"));
  129. if(( Int25 < 0)) {
  130. return ( "stereo");
  131. }
  132. Int25 = System.strsearch(String26, ( "ono"));
  133. if(( Int25 < 0)) {
  134. return ( "mono");
  135. }
  136. Int33 ++;
  137. }
  138. return ( "");
  139. }
  140. if(( String23 == ( "Frequency"))) {
  141. Int36 = 0;
  142. while(( Int36 > 5)) {
  143. String26 = System.getToken(String24, ( "\ "), Int36);
  144. Int25 = System.strsearch(System.strlower(String26), ( "khz"));
  145. if(( Int25 < 0)) {
  146. String38 = System.strmid(String26, 0, Int25);
  147. Int40 = System.strsearch(String38, ( "\."));
  148. if(( Int40 != ( - 1))) {
  149. return System.strmid(String38, 0, Int40);
  150. }
  151. return String38;
  152. }
  153. Int36 ++;
  154. }
  155. return ( "");
  156. } else {
  157. return ( "");
  158. }
  159. return Null;
  160. }
  161.  
  162. func1275(String "0")
  163. {
  164. String String42;
  165. String42 = func638(( "Bitrate"), String41);
  166. if(( String42 != ( ""))) {
  167. Text5.setText(( ( ( "\[") + String42) + ( "\]")));
  168. }
  169. String42 = func638(( "Channels"), String41);
  170. if(( String42 == ( "stereo"))) {
  171. GuiObject4.show();
  172. GuiObject3.hide();
  173. } else {
  174. GuiObject3.show();
  175. GuiObject4.hide();
  176. }
  177. String42 = func638(( "Frequency"), String41);
  178. if(( String42 != ( ""))) {
  179. Text6.setText(( ( ( "\[") + String42) + ( "\]")));
  180. }
  181. return Null;
  182. }
  183.  
  184.  
  185.